package com.rp.system.corn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class QuartzJob {

	@ApiModelProperty(value = "主键自增ID")
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = "任务名称")
	private String jobName;

	@ApiModelProperty(value = "任务分组")
	private String jobGroup;

	@ApiModelProperty(value = "执行类")
	private String jobClassName;

	@ApiModelProperty(value = "执行时间")
	private String cronExpression;

	@ApiModelProperty(value = "任务状态")
	private String triggerState;

	@ApiModelProperty(value = "任务名称 用于修改")
	private String oldJobName;

	@ApiModelProperty(value = "任务分组 用于修改")
	private String oldJobGroup;

	@ApiModelProperty(value = "任务描述")
	private String description;
	
	public QuartzJob() {
		super();
	}


	public QuartzJob(String jobName, String jobGroup, String jobClassName, String cronExpression, String triggerState, String description) {
        this.jobName = jobName;
        this.jobGroup = jobGroup;
        this.jobClassName = jobClassName;
        this.cronExpression = cronExpression;
        this.triggerState = triggerState;
		this.description = description;
    }
}
